package com.kaba.bean.mongodb;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 班级
 */
@ToString
public class Klasses implements Serializable {

    /**
     * 班级编号
     */
    private String id;

    /**
     *
     */
    private String v;

    /**
     * 班级名
     */
    private String classname;

    /**
     * 邀请码
     */
    private String invitecode;

    /**
     * 变更信息
     */
    private String meta;

    /**
     * 学校编号
     */
    private String school;

    /**
     * 业务信道列表
     */
    private String tchlist;

    /**
     * 班级创建事件
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;

    /**
     * 当前人数
     */
    private Integer total;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getV() {
        return v;
    }

    public void setV(String v) {
        this.v = v;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getInvitecode() {
        return invitecode;
    }

    public void setInvitecode(String invitecode) {
        this.invitecode = invitecode;
    }

    public String getMeta() {
        return meta;
    }

    public void setMeta(String meta) {
        this.meta = meta;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getTchlist() {
        return tchlist;
    }

    public void setTchlist(String tchlist) {
        this.tchlist = tchlist;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }
}